layui.use(['form', 'admin', 'ax', 'laydate', 'upload', 'formSelects', 'tree', 'layer'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;
    var tree = layui.tree;
    var layer = layui.layer;
    var upload = layui.upload;

    //获取详情信息，填充表单
    var ajax = new $ax(Feng.ctxPath + "/voteInfo/showVoteInfoById?param=" + Feng.getUrlParam("main_id"));
    var result = ajax.start();
    console.log(result)
    result.data.ftl = Number(result.data.ftl * 100).toFixed(2)
    result.data.approve_odds = Number(result.data.approve_odds * 100).toFixed(2)
    form.val('showVoteInfoForm', result.data)


    $('#cancel').click(function () {
        parent.layer.closeAll();
    });

});